
Random values generation from the ESAG distribution.
ESAGsim(n, param)
A number; how many vectors you want to generate.
The parameters of the ESAG distribution, the first three are the mean vector in
An nx3 matrix with the simualted unit vectors.
A random sample from the ESAG distribution is generated. In case the gammas are zeo the sample is drawn from Independent Angular Gaussian (IAG) or projected normal.
Mardia, K. V. and Jupp, P. E. (2000). Directional statistics. Chicester: John Wiley & Sons.
Paine P.J., Preston S.P., Tsagris M. and Wood A.T.A. (2017). An Elliptically Symmetric Angular Gaussian Distribution. Statistics and Computing (Accepted).
# NOT RUN {
m <- colMeans( as.matrix( iris[,1:3] ) )
y <- ESAGsim(1000, c(m, 1, 0.5) )
ESAGmle(y)
# }
Run the code above in your browser using DataLab